/**
 * Copyright 2018 orivil.com. All rights reserved.
 * Use of this source code is governed by a MIT-style
 * license that can be found at https://mit-license.org.
 */

package image_html

import "gitee.com/tugoer/orivil/mux"

var adminDir = "admin"

var Actions = []*mux.Action {
	{
		Method:"GET", Route:"admin/upload", Name: "Admin Upload Page",
		Handler: func(ctx *mux.Context) {
			ctx.VDir(adminDir).View("layout", "upload")
		},
	},
	{
		Method:"GET", Route:"admin/search", Name: "Admin Search Page",
		Handler: func(ctx *mux.Context) {
			ctx.VDir(adminDir).View("layout", "search")
		},
	},
}
